//
//  HMXBottomCell.m
//  音乐播放器
//
//  Created by apple on 16/7/24.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "HMXHotLrcView.h"

@interface HMXHotLrcView ()

@property (weak, nonatomic) IBOutlet UILabel *hotLrcLabel;

@property (weak, nonatomic) IBOutlet UILabel *hotLrcNum;

@end

@implementation HMXHotLrcView

+(instancetype)viewFromXib
{
    return [[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
}

-(void)setItem:(musicModel *)item
{
    _item = item;
    self.hotLrcLabel.text = item.hotLrclist;
    self.hotLrcNum.text = item.hotLrclistNum;
}

- (IBAction)hotLrcBtn:(UIButton *)sender {
        
    NSNotification *noti = [NSNotification notificationWithName:@"hotLrcNotification" object:self userInfo:@{@"BtnClick":sender,@"text":self.hotLrcNum}];
    
    //发送通知
    [[NSNotificationCenter defaultCenter]postNotification:noti];
    
    
}

@end
